package com.housediyadmin.command.colorCommand
{   	
	import com.housediyadmin.events.colorEvent.AddColorsEvent;
	import com.housediyadmin.service.ColorRemoteObjectService;
	
	import org.robotlegs.mvcs.Command;
	
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/2/15
	 */ 
	public class AddColorsCommand extends Command
	{
		[Inject]
		public var event:AddColorsEvent;
		
		[Inject]
		public var service:ColorRemoteObjectService;
		
		override public function execute():void
		{
			service.addColorArray(event.colorArray);
		}
	}
}